From dcef776fbd39e0994f2b81b7fbeecdfd75f47150 Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Thu, 21 Feb 2008 08:11:39 +0000 Subject: [PATCH] (sit-for): Fix obsolete form for nil second argument. --- lisp/subr.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lisp/subr.el b/lisp/subr.el index 8420c8553dd..329c4ca2c24 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -1763,9 +1763,10 @@ in milliseconds; this was useful when Emacs was built without floating point support. \(fn SECONDS &optional NODISP)" - (when (or obsolete (numberp nodisp)) - (setq seconds (+ seconds (* 1e-3 nodisp))) - (setq nodisp obsolete)) + (if (numberp nodisp) + (setq seconds (+ seconds (* 1e-3 nodisp)) + nodisp obsolete) + (if obsolete (setq nodisp obsolete))) (cond (noninteractive (sleep-for seconds) -- 2.30.2